<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>鹿和后台</title>
    <script>
        // PUBLIC CONFIG
        (function () {
            const config_data = {
                token_key: 'TOKEN',
                api: {
                    url: '//127.0.0.1:8000',
                    error_message: '网络请求发生错误',
                },
                layout: {
                    logo: 40,
                    background: '#f5f7f9',
                    header: 64,
                    pages: 40,
                    footer: 30,
                    sider: {
                        inverted: false,
                        open: 240,
                        close: 64,
                        background: '#ffffff',
                    },
                },
                title: document.title,
                app_theme: '#1c8eee',
                version: {
                    version: '12.0.1 [Genshin Impact]',
                    date: '2022年8月1日 下午4:55:55',
                    desc: '鹿和开发套件 北有神鹿 其名鹿和'
                }
            }
            let link = document.createElement('link');
            link.type = 'image/x-icon';
            link.rel = 'shortcut icon';
            link.href = config_data.api.url + '/storage/assets/favicon.png';
            document.getElementsByTagName('head')[0].appendChild(link);
            localStorage.setItem('APP_CONFIG', JSON.stringify(config_data))
        })()
        // PUBLIC CONFIG END
    </script>
</head>
<body>
<div id="app"></div>
<script>
    (function () {
        const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
        const setting = localStorage.getItem('color-schema') || 'auto'
        if (setting === 'dark' || (prefersDark && setting !== 'light'))
            document.documentElement.classList.toggle('dark', true)
    })()
</script>
<script type="module" src="/src/main.js"></script>
</body>
</html>
